package com.wy2.springcloud.sample.zuulserver;

import org.springframework.cloud.netflix.zuul.filters.post.LocationRewriteFilter;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

@Configuration
public class ZuulConfig {
	
	/**
	 * 如果zuul是个web页面应用，3XX状态重定义需要LocationRewriteFilter的支持
	 * @return
	 */
    @Bean
    public LocationRewriteFilter locationRewriteFilter() {
        return new LocationRewriteFilter();
    }
}